import com.lpf.transaction.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 功能描述：注解 配置事物
 */
public class SpringAnnotationTransaction {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("spring-annotation-transaction.xml");
		UserService userService = (UserService) app.getBean("userService");
		userService.addOfAnnotation();
	}

}
